#include <iostream>
using namespace std;

class CAL {
public:
	CAL(int n) {
		this->n = n;
	}

	~CAL() {
	}

	void process();

	void show() {
		cout << "n:" << this->n << " fact:" << this->fact << endl;
	}

private:
	int fact;
	int n;
};

void CAL::process() {
	if (this->n < 2) {
		this->fact = 1;
		return;
	}

	fact = 1;
	for (int i = 2; i <= this->n; i++) {
		fact *= i;
	}
}

//int main() {
//	CAL cal(3);
//	cal.process();
//	cal.show();
//	return 0;
//}